﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DCT.AutoUpdate.Code
{
    public static class ExceptionUtility
    {
        public static ArgumentNullException StringEmptyOrNullException(string tag, params string[] args)
        {
            string paraName = tag + "=>";
            if (!CollectionUtility.IsEmptyOrNull(args))
            {
                paraName += string.Join("|", args);
            }
            string msg = "Is Not allowed empty or null";
            return new ArgumentNullException(paraName, msg); 
        }
    }
}
